{% extends 'admin/admin.html' %}
{% block title %}
    <title>admin_job</title>
{% endblock %}

{% block one %}
<form action="/admin_job/" method="post">
    <table class="table">
        <thead>
            <tr>
                <th>id</th>
                <th>职位</th>
                <th>基础薪资</th>
                <th>修改</th>
            </tr>
        </thead>
        <tbody>
        {% for job in jobs %}
            <tr>
                <td>{{ job.id }}</td>
                <td><input type="text" name="{{ job.name }}" value="{{ job.name }}"></td>
                <td><input type="text" name="{{ job.wages }}" value="{{ job.wages }}"></td>
                <td><input type="submit" name="{{ job.id }}" value="修改"></td>
            </tr>
        {% endfor %}
            <tr>
                <td>自增</td>
                <td><input type="text" name="add_name" value=""></td>
                <td><input type="text" name="add_wages" value=""></td>
                <td><input type="submit" name="add" value="添加"></td>
            </tr>
        </tbody>
    </table>
</form>
{% endblock %}

{% block twe %}
{% if p.page > 1 %}
	<li><a href="{{ p.page - 1 }}">上一页</a></li>
    {% else %}
    <li><a href="">上一页</a></li>
{% endif %}
<li><a href="#"></a>{{ p.page }}</li>
{% if p.pages > p.page %}
	<li><a href="{{ p.page + 1 }}">下一页</a></li>
{% else %}
    <li><a href="">下一页</a></li>
{% endif %}
{% endblock %}
